package log;
public class LoggerFactory {
    private static final Log log = null;

    public static Log newInstance(Class<?> clazz) {
        if (log != null) {
            log.setClazz(clazz);
            return log;
        }
        synchronized (LoggerFactory.class) {
            if (log != null) {
                log.setClazz(clazz);
                return log;
            } else {
                Log log = new Log(clazz);
                log.setColorMode(true);
                log.setEnable(true);
                return log;
            }
        }
    }
}
